﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Product.API.ISerivces.Upload
{
    /// <summary>
    /// 文件上传服务接口
    /// </summary>
    public interface IUploadSerivces
    {
        /// <summary>
        /// 文件上传
        /// </summary>
        /// <param name="file">图片地址</param>
        /// <returns>返回链接</returns>
        string UploadFile(IFormFile file, string customFolder);

        /// <summary>
        /// 文件删除
        /// </summary>
        /// <param name="url">文件地址</param>
        /// <returns>返回结果</returns>
        int DeleteFile(string url);

    }
}
